<template>
  <div class="modal">
    <a-modal v-model="modal.visible"
    :title="modal.title" 
    :cancelText="$t('m.Cancel')"
    :okText="$t('m.Ok')"
    
    @ok="handleOk" @cancel="handleCancel" :width="modal.width">
    
    <slot></slot>
    </a-modal>
  </div>
</template>

<script>
export default {
 name:"Modal",
 props: {
     modal :{
         type:Object
         
     }
 },
 data(){
     return {
        
     }
 },
 methods:{
     handleOk(){
     this.$emit("modalLast")
     },
     handleCancel(){
     this.$emit("modalhand")
     }
 }
}
</script>

<style>

</style>